<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>end</title>
</head>
<body>

<%
String id=request.getParameter("id");
String name=request.getParameter("name");
String age=request.getParameter("age");
%>

<form>
<input type="button" value=<%=id %>>
<input type="button" value=<%=name %>>
<input type="button" value=<%=age %>>
</form>

<%
try{
	int ids=100;
	String names ="胡歌";
	String sex="男";
	int ages =20;
	
	request.setAttribute("returns", ids+","+","+names+","+sex+","+ages);

}catch(Exception e){
	request.setAttribute("returns" ,"很抱歉,页面出现了故障!");
}

%>
<!--  验证getParameter()需要注释掉该标签-->
<jsp:forward page="begin.jsp"/>


</body>
</html>